package com.dingli.admin.service.impl;

import com.dingli.admin.service.FindOne;
import com.dingli.framework.entity.User;
import com.dingli.framework.mapper.UserMapper;
import com.dingli.framework.util.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FindOneImpl implements FindOne {

    @Autowired
    private UserMapper userMapper;

    @Override
    public Response<List<User>> findOne(int user_id) {
        List<User> one = userMapper.findOne(user_id);
        return new Response(200,"查询成功",one);
    }

}
